package com.foreknow.tijian.service;

import com.foreknow.tijian.po.Business;

import java.sql.SQLException;
import java.util.List;

public interface BusinessService {
    /**
     * 根据点餐分类编号查询所属商家信息
     * @param orderTypeId
     * @return
     */
    public List<Business> listBusinessByOrderTypeId(int orderTypeId) throws SQLException;

    /**
     * 根据商家编号查找商家信息
     * @param id
     * @return
     */
    public Business getBusinessById(int id)throws SQLException;
}
